﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNA.Mvc.Community
{
    public interface IThreadRepository:IRepository<Thread>
    {
        void Move(int threadID, int forumID);

        IQueryable<Thread> GetUserThreads(string username, string sortby, SortingOrders order, int pageIndex, int pageSize, out int totalRecords);

        IQueryable<Thread> GetModeratedThreads(int forumID, int pageIndex, int pageSize, out int totalRecords);

        IQueryable<Thread> GetPinnedThreads(int forumID);

        void Read(int id);

        void Pin(int id, bool value);

        void Lock(int id, bool value);

        Thread Next(int forumID,int id);

        Thread Prev(int forumID, int id);
    }
}
